#include "logger/logger.h"
#include "web_server.h"
#include <iostream>

int main(int argc, char* argv[])
{
    if (argc < 2)
    {
        LOG_ERROR("Usage: {} <port>\n", argv[0]);
        exit(1);
    }

    LOG_INFO("hello web server~");

    int port = atoi(argv[1]);

    using namespace zh;
    WebServer server;
    server.initialize(port);
    server.start();
    return 0;
}